<html>
	<head>
	
	<script type="text/javascript">
	
	function refreshClickCount () {
		var clicked = localStorage.clickCount ? parseInt(localStorage.clickCount) : 0;
		
		document.getElementById("clicked").innerHTML = clicked;
	}
	
	window.onload = function () {
	
		refreshClickCount();
		
		document.getElementById("java").addEventListener("click", function () {
			
			localStorage.clickCount = localStorage.clickCount ? parseInt(localStorage.clickCount) : 0;
			localStorage.clickCount++;
			refreshClickCount();
			
		});
	};
	
	</script>
	</head>
	
	<body>
		
		<img id="java" alt="" src="../images/java.png" />
	
		<div id="clicked" style="font-size:100px;">
		
		</div>
	</body>
</html>